home *** CD-ROM | disk | FTP | other *** search
- #######################################
- # FILE COPIER #
- #######################################
- # (C)2000 Romain Guy #
- # Dawn demonstration #
- #######################################
-
- "File to copy: " input
- "Destination: " input
-
- 0 copyFileLinesCount ->
- copyFileDestination ->
-
- try
- "DAWN.IO.COPYFILE" openForInput
- while "DAWN.IO.COPYFILE" isFileAvailable repeat
- "DAWN.IO.COPYFILE" readLine
- copyFileLinesCount ++
- wend
-
- 1 copyFileLinesCount rcl 1 - i for
- swap lineSeparator concat swap concat
- next
-
- copyFileDestination rcl "DAWN.IO.COPYFILE" openForOutput
- "DAWN.IO.COPYFILE" writeLine
- "DAWN.IO.COPYFILE" closeFile
- catch "An error occured during copy !" msgBox err
-
- "Copy done." msgBox
-
- # End of script
-